home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(load){
- function fadeout(num_y, num_x)
- {
- target_alpha = num_x;
- this._visible = 1;
- if(num_x == 100)
- {
- this._alpha = 100;
- }
- else
- {
- this._alpha = num_y;
- clearInterval(_parent.timer3);
- _parent.timer3 = setInterval(go_fade,50,this);
- }
- }
- function go_fade(obj)
- {
- if(obj._alpha < obj.target_alpha)
- {
- obj._alpha += 5;
- }
- if(obj._alpha > obj.target_alpha)
- {
- obj._alpha -= 5;
- }
- if(Math.abs(obj._alpha - obj.target_alpha) < 5)
- {
- if(obj.target_alpha == 0)
- {
- obj._visible = 0;
- }
- obj.stop_fade();
- }
- }
- function stop_fade()
- {
- clearInterval(_parent.timer3);
- }
- function change_jersey(x_country)
- {
- jersey.gotoAndStop(x_country);
- jersey_sleeve.gotoAndStop(x_country);
- }
- var target_alpha = 0;
- }
-